package com.book.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Book {

	private int id;
	private String title;
	private String type;
	private String path;
	private Date date;
	private String author;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDateToString() {
		SimpleDateFormat dfs = new SimpleDateFormat("yyyy-MM-dd,HH:mm");
		return dfs.format(date);
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAuthor() {
		return author;
	}

}